import fetch from '@/utils/fetch'

export function fetchList (query) {
  return fetch({
    url: '/api/courseRate/getRateName',
    method: 'get',
    params: query
  })
}

export function fetchListZero (query) {
  return fetch({
    url: '/api/courseRate/getRateNameByTypeZero',
    method: 'get',
    params: query
  })
}

export function fetchListOne (query) {
  return fetch({
    url: '/api/courseRate/getRateNameByTypeOne',
    method: 'get',
    params: query
  })
}

export function getRateDetails (query) {
  return fetch({
    url: '/api/courseRate/getRateDetails',
    method: 'get',
    params: query
  })
}
